package com.yao.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 轮播图数据
 * </p>
 *
 * @author author
 * @since 2024-12-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("slider")
@ApiModel(value="Slider对象", description="轮播图数据")
public class Slider implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品的id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "商品是否下架")
    @TableField("isDeleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "商品的url地址")
    @TableField("imageUrl")
    private String imageUrl;

    @ApiModelProperty(value = "商品详情页链接")
    @TableField("linkUrl")
    private String linkUrl;

    @ApiModelProperty(value = "商品的排序字段")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "修改时间")
    @TableField("updateTime")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private LocalDateTime createTime;


    public Slider() {
    }

    public Slider( Integer id, String title, Integer isDeleted, String imageUrl, String linkUrl, Integer sort, LocalDateTime updateTime, LocalDateTime createTime) {

        this.id = id;
        this.title = title;
        this.isDeleted = isDeleted;
        this.imageUrl = imageUrl;
        this.linkUrl = linkUrl;
        this.sort = sort;
        this.updateTime = updateTime;
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置
     * @param title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取
     * @return isDeleted
     */
    public Integer getIsDeleted() {
        return isDeleted;
    }

    /**
     * 设置
     * @param isDeleted
     */
    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    /**
     * 获取
     * @return imageUrl
     */
    public String getImageUrl() {
        return imageUrl;
    }

    /**
     * 设置
     * @param imageUrl
     */
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    /**
     * 获取
     * @return linkUrl
     */
    public String getLinkUrl() {
        return linkUrl;
    }

    /**
     * 设置
     * @param linkUrl
     */
    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    /**
     * 获取
     * @return sort
     */
    public Integer getSort() {
        return sort;
    }

    /**
     * 设置
     * @param sort
     */
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    /**
     * 获取
     * @return updateTime
     */
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return createTime
     */
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String toString() {
        return "id = " + id + ", title = " + title + ", isDeleted = " + isDeleted + ", imageUrl = " + imageUrl + ", linkUrl = " + linkUrl + ", sort = " + sort + ", updateTime = " + updateTime + ", createTime = " + createTime + "}";
    }
}
